package common.data.report
{
	import mx.rpc.events.ResultEvent;
	import mx.rpc.remoting.RemoteObject;

	/**
	 * 定位服务类
	 */
	public class StaffAlarmReportService extends RemoteObject
	{
		public var queryStaffAlarmReportCallBack:Function;
		
		
		public function StaffAlarmReportService() {
			super("staffAlarmReportService");
			this.showBusyCursor = true;
			this.getOperation("queryStaffAlarmReport").addEventListener(ResultEvent.RESULT,queryStaffAlarmReportResult,false,0,true);
		}
		
		public function queryStaffAlarmReport(staffIds:Array,startDate:String,endDate:String):void{
			this.getOperation("queryStaffAlarmReport").send(staffIds,startDate,endDate);
		}
		//回调根据员工ID集合获取实时定位信息
		private function queryStaffAlarmReportResult(e:ResultEvent):void{
			try{
				if(queryStaffAlarmReportCallBack != null){
					queryStaffAlarmReportCallBack.apply(this,[e]);
				}
			}catch(error:Error){
				trace(error.getStackTrace());
			}
		}
		
		
	}
}	